package com.karrim.server.io;

import com.google.inject.Inject;
import java.util.LinkedHashSet;

/**
 *
 * @author andrea.cantafio
 */
public class Parser extends LinkedHashSet<String> {

    @Inject
    public Parser(InputReaderThread reader, InputParserThread parser) {
        inputReader = reader;
        inputParser = parser;
    }

    @Override
    public boolean add(String e) {
        inputParser.inputAdded(inputReader);
        return super.add(e);
    }
    private InputParserThread inputParser;
    private InputReaderThread inputReader;
    public static final String DEFAULT_DELIMITER = ";";
}